/**
 * @author mmbro
 * @homepage https://gitee.com/mmbro/
 * @date 2021年05月19日00:28:23
 * @description 注释: 枚举;人物朝向,当前方向
 */
class Direction{
    /**
     * @description 朝上
     * @type {number}
     * @private
     */
    static #_up = 1;
    /**
     * @description 朝下
     * @type {number}
     * @private
     */
    static #_down = 2;
    /**
     * @description 朝左
     * @type {number}
     * @private
     */
    static #_left = 3;
    /**
     * @description 朝右
     * @type {number}
     * @private
     */
    static #_right = 4;
    /**
     * @description 朝左上
     * @type {number}
     * @private
     */
    static #_leftUp = 5;
    /**
     * @description 朝左下
     * @type {number}
     * @private
     */
    static #_leftDown = 6;
    /**
     * @description 朝右上
     * @type {number}
     * @private
     */
    static #_rightUp = 7;
    /**
     * @description 朝右下
     * @type {number}
     * @private
     */
    static #_rightDown = 8;

    static #rand = new RandomUtil(RandomUtil.genId(), 8);

    static get randDirection() {
        return this.#rand.trueRand();
    }

    static get up() {
        return this.#_up;
    }

    static get down() {
        return this.#_down;
    }

    static get left() {
        return this.#_left;
    }

    static get right() {
        return this.#_right;
    }

    static get leftUp() {
        return this.#_leftUp;
    }

    static get leftDown() {
        return this.#_leftDown;
    }

    static get rightUp() {
        return this.#_rightUp;
    }

    static get rightDown() {
        return this.#_rightDown;
    }
}